<div class="summary-container">
<?php
	Includes::IncludeFile( Includes::$SPACER );
	
	$ms_registration_value = Mahasamadhi_registration_value::cast($ms_registration_value);
?>

	<div class="form-item-summary">
		<div class="form-item-key-summary">Registration Type:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getRegistrationTypeDescription() ); ?></div>
	</div>
	
	<div class="form-item-summary">
		<div class="form-item-key-summary">Occupany:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getRegistrationCaseDescription() ); ?></div>
	</div>
	
	<div style="clear: both;"></div>
	<?php Spacer::Render(0, 8); ?>

	<div class="form-item-summary">
		<div class="form-item-key-summary">Primary Contact Name:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getFirstName() . ' ' . $ms_registration_value->getLastName() ); ?></div>
	</div>

	<div class="form-item-summary">
		<div class="form-item-key-summary">Email:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getEmail() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">Phone:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getPhone() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">Address1:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getAddress() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">Address2:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getAddress1() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">City:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getCity() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">State/Province:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getState() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">Country:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getCountry() ); ?></div>
	</div>
	<div class="form-item-summary">
		<div class="form-item-key-summary">Postal Code:</div>
		<div class="form-item-value-summary"><?php echo( $ms_registration_value->getZip() ); ?></div>
	</div>

	<?php Spacer::Render(0, 8); ?>
	
	<div style="clear: both;"></div>
	
	<?php
		$needacc = $ms_registration_value->getNeedAccommodation();
		if ($needacc == 0)
		{
			echo('<div class="form-item-summary">');
			echo('<div class="form-item-key-summary">No accommodation required</div>');
			echo('<div class="form-item-value-summary"></div>');
			echo('</div>');
		}
	?>

	<div style="clear: both;"></div>
	<?php
		$numAdult = $ms_registration_value->getNumAdultRegistered();
		if ($numAdult > 0)
		{
			echo('<div class="form-item-summary">');
			echo('<div class="form-item-key-summary">Number of adults:</div>');
			echo('<div class="form-item-value-summary">'.$ms_registration_value->getNumAdultRegistered().'</div>');
			echo('</div>');

			for($i=0; $i<$ms_registration_value->getNumAdultRegistered(); $i++)
			{
				$adultInfoArr = $ms_registration_value->getAdultInfo();
				$adultRec = $adultInfoArr[$i];
	
				//echo ( form_label('<font size="2" color="blue">-'.$adultRec["firstname"].' '.$adultRec["lastname"].','.$adultRec["gender"].','.$adultRec["dietrest"].','.$adultRec["allergies"].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo ( form_label('<font size="2" color="blue">-'.$adultRec["firstname"].' '.$adultRec["lastname"].','.$adultRec["gender"].','.$adultRec["dietrest"].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo("</br>");
				Spacer::Render(0, 5);
			}
		}
	?>

	<div style="clear: both;"></div>
	
	<?php
		$numChild = $ms_registration_value->getNumChildRegistered();
		if ($numChild > 0)
		{
			echo('<div class="form-item-summary">');
			echo('<div class="form-item-key-summary">Number of children:</div>');
			echo('<div class="form-item-value-summary">'.$ms_registration_value->getNumChildRegistered().'</div>');
			echo('</div>');

			for($i=0; $i<$ms_registration_value->getNumChildRegistered(); $i++)
			{
				$childInfoArr = $ms_registration_value->getChildInfo();
				$childRec = $childInfoArr[$i];
	
				//echo ( form_label('<font size="2" color="blue">-'.$childRec["firstname"].' '.$childRec["lastname"].','.$childRec["gender"].','.$childRec["age"].','.$childRec["dietrest"].','.$childRec["allergies"].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo ( form_label('<font size="2" color="blue">-'.$childRec["firstname"].' '.$childRec["lastname"].','.$childRec["gender"].','.$childRec["age"].','.$childRec["dietrest"].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo("</br>");
				Spacer::Render(0, 5);
			}
		}
	?>

	<div style="clear: both;"></div>
	
	<?php
		$numCHYK = $ms_registration_value->getNumCHYKRegistered();
		if ($numCHYK > 0)
		{
			echo('<div class="form-item-summary">');
			echo('<div class="form-item-key-summary">Number of CHYKs:</div>');
			echo('<div class="form-item-value-summary">'.$ms_registration_value->getNumCHYKRegistered().'</div>');
			echo('</div>');

			if ($ms_registration_value->getCHYKRefFirstName() != "")
			{
				echo ( form_label('<font size="2" color="blue">-Referrer: '.$ms_registration_value->getCHYKRefFirstName().' '.$ms_registration_value->getCHYKRefLastName().'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo("</br>");
				Spacer::Render(0, 5);				
			}
			
			for($i=0; $i<$numCHYK; $i++)
			{
				$chykInfoArr = $ms_registration_value->getCHYKInfo();
				$chykRec = $chykInfoArr[$i];
	
				//echo ( form_label('<font size="2" color="blue">-'.$chykRec["firstname"].' '.$chykRec["lastname"].','.$chykRec["gender"].','.$chykRec["dietrest"].','.$chykRec["allergies"].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo ( form_label('<font size="2" color="blue">-'.$chykRec["firstname"].' '.$chykRec["lastname"].','.$chykRec["gender"].','.$chykRec["dietrest"].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 300px;')) );
				echo("</br>");
				Spacer::Render(0, 5);
			}
		}
	?>

	<div style="clear: both;"></div>
	<?php Spacer::Render(0, 8); ?>
		
	<?php
		$snwc = $ms_registration_value->getSpecialNeedsWheelchair();
		$snrm = $ms_registration_value->getSpecialNeedsRoom();
		$sr = $ms_registration_value->getSpecialRequests();

		if (($snwc > 0) || ($snrm > 0) || ($sr != ""))
		{
			echo('<div class="form-item-summary">');
			echo('<div class="form-item-key-summary">Special Requests:</div>');
			echo('</div>');

			if ($snwc > 0)
			{
				echo ( form_label('<font size="2" color="blue">-Wheelchair Requested</br></font>','tmp',array('class'=>'snwc','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 400px;')) );
				Spacer::Render(0, 5);
			}

			if ($snrm > 0)
			{
				echo ( form_label('<font size="2" color="blue">-Handicapped Accessible Room Requested</br></font>','tmp',array('class'=>'snrm','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 450px;')) );
				Spacer::Render(0, 5);
			}
			
			if ($sr != "")
			{
				echo ( form_label('<font size="2" color="blue">-'.$sr.'</br></font>','tmp',array('class'=>'snrm','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: 0px 0 4px 10px; width: 450px;')) );
				Spacer::Render(0, 5);
			}
			
			Spacer::Render(0, 10);
		}
	?>
	<div style="clear: both;"></div>
	
	<?php
		$dayname = array('Monday, July 30<sup>th</sup>','Tuesday, July 31<sup>st</sup>','Wednesday, Ausgust 1<sup>st</sup>','Thursday, August 2<sup>nd</sup>','Friday, August 3<sup>rd</sup>');
		if ($ms_registration_value->getNumBiksha() > 0)
		{
			echo('<div class="form-item-summary">');
			Spacer::Render(0, 8);
			echo('<div class="form-item-key-summary">#Bhiksha Sponsorships:</div>');
			echo('<div class="form-item-value-summary">'.$ms_registration_value->getNumBiksha().'</div>');
			echo('</div>');
			
			echo("</br>");
			$eventname = array('Morning Bhiksha','Lunch Bhiksha','Evening Bhiksha');
			for($i=0; $i<$ms_registration_value->getNumBiksha(); $i++)
			{
				$bikshaInfoArr = $ms_registration_value->getBikshaInfo();
				$bikshaRec = $bikshaInfoArr[$i];
				$dayid = intval($bikshaRec["dayid"]);
				$sessid = intval($bikshaRec["eventid"]);
	
				echo ( form_label('<font size="2" color="blue">-'.$dayname[$dayid-1].' - '.$eventname[$sessid-1].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: -10px 0 4px 10px; width: 300px;')) );
				echo("</br>");
				Spacer::Render(0, 5);
			}
		}
				
		echo('<div style="clear: both;"></div>');

		if ($ms_registration_value->getNumArathi() > 0)
		{
			echo('<div class="form-item-summary">');
			echo('<div class="form-item-key-summary">#Arathi Sponsorships:</div>');
			echo('<div class="form-item-value-summary">'.$ms_registration_value->getNumArathi().'</div>');
			echo('</div>');
	
			echo("</br>");
			$eventname = array('Morning Arathi','Lunch Arathi','Evening Arathi');
			for($i=0; $i<$ms_registration_value->getNumArathi(); $i++)
			{
				$arathiInfoArr = $ms_registration_value->getArathiInfo();
				$arathiRec = $arathiInfoArr[$i];
				$dayid = intval($arathiRec["dayid"]);
				$sessid = intval($arathiRec["eventid"]);
	
				echo ( form_label('<font size="2" color="blue">-'.$dayname[$dayid-1].' - '.$eventname[$sessid-1].'</font>','tmp',array('class'=>'sncomments','style'=>'clear: left; display: block; float: left; vertical-align: middle; padding: 0; margin: -10px 0 4px 10px; width: 300px;')) );
				echo("</br>");
				Spacer::Render(0, 5);
			}
		}
	?>
		
	<?php Spacer::Render(0, 25) ?>
	
	<div class="form-item-summary">
		<div class="form-item-key-summary">Registration Fee:</div>
		<div class="form-item-value-summary">$<?php echo( $ms_registration_value->getRegistrationFee() ); ?></div>
	</div>
	
	<div class="form-item-summary">
		<div class="form-item-key-summary">Sponsorship:</div>
		<div class="form-item-value-summary">$<?php echo( $ms_registration_value->getSponsorship() ); ?></div>
	</div>

	<div class="form-item-summary">
		<div class="form-item-key-summary">Teacher Discount:</div>
		<div class="form-item-value-summary"><font color="red">$(<?php echo( (100*$ms_registration_value->getIsTeacher()) ); ?>)</font></div>
	</div>

	<div style="width: 300px;"><hr /></div>
	
	<div class="form-item-summary">
		<div class="form-item-key-summary">Total Due:</div>
		<div class="form-item-value-summary">$<?php echo( $ms_registration_value->getTotalRegistrationFee() ); ?></div>
	</div>
	
	<br />
		
    <p style="font-size: 14px; color:red;"> <b>To complete your registration payment must be made via check or Paypal.</b></p>

    <div class="form-button-container" style="float: inherit;">
        <a href="<?php echo( base_url() ); ?>mahasamadhi/mahasamadhi_registration/pay_by_check/<?php echo( $eventid ); ?>"><img src="<?php echo( base_url() ); ?>assets/images/buttons/pay_by_check.gif" border="0" /></a>
    </div>

	<div class="form-button-container">
		<?php echo( $paypal_form ); ?>
    	<p style="font-size: 12px; color:red;"> <b>NOTE: You can also pay by credit card with the Paypal option.</b></p>
	</div>

</div>

